home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Gamer (Italian) 30
/
PC Gamer IT CD 30 1-2.iso
/
MOTS
/
GAMEDATA
/
RESOURCE
/
JKMRES.GOO
/
cog_00_stormgen2.cog
< prev
next >
Wrap
Text File
|
1998-02-25
|
1KB
|
56 lines
# Jedi Knight Cog Script
#
# 00_STORMGEN2.COG
#
# Simple... just spawn one guy and move him somewhere...
# if the previous one was killed allow doing it again.
#
# [YB]
#
# (C) 1997 LucasArts Entertainment Co. All Rights Reserved
symbols
thing pos desc=generator_ghost
thing targetThing desc=target_ghost
template enemyTpl desc=enemy_to_generate
sector theSector
surface theSurface
int enemy local
int done=0 local
message entered
message crossed
message killed
end
# ========================================================================================
code
entered:
crossed:
if(done) return;
done = 1;
enemy = CreateThing(enemyTpl, pos);
CaptureThing(enemy);
AISetMoveThing(enemy, targetThing);
Return;
# ........................................................................................
killed:
done = 0;
Return;
end